package com.claimSettlement.controller;

import com.claimSettlement.pojo.SysJurisdiction;
import com.claimSettlement.pojo.SysUser;
import com.claimSettlement.service.MenuOpenFeginService;
import com.claimSettlement.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/*
 *菜单控制层
 *宁杰
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;
    @Autowired
    MenuOpenFeginService menuOpenFeginService;
    @RequestMapping("/getUser")
    public SysUser getUser(@RequestBody Map<String,String> map){
        return userService.getUser(map.get("account"),map.get("password"));
    }
    @RequestMapping("/getUserAll")
    public List<SysUser> getUserAll() {
        return userService.getUserAll();
    }
    @RequestMapping("/getSettAndOneUser")
    public List<SysUser> getSettAndOneUser(){
        return userService.getSettAndOneUser();
    }
}
